﻿using System;
using System.Collections.Generic;
using System.Text;
using MyLibrary.TaskScheduler;

namespace Common.TaskPlan.Entity
{
    public class TaskEntity
    {
        private string _name = String.Empty;
        private string _execPath = String.Empty;
        private string _startPath = String.Empty;
        private string _description = String.Empty;
        private string _creator = String.Empty;
        private string _password = String.Empty;

        private bool _runAfterLogin = false;
        private bool _enable = true;
        private bool _containTriggers = false;

        private TaskStatus _taskStatus = TaskStatus.Ready;

        private List<TriggerEntity> _triggers = null;

        public TaskEntity(bool containTriggers)
        {
            this._containTriggers = containTriggers;
        }

        public TaskEntity() : this(false)
        {

        }
    }
}
